import{j as t,r as u,m as x,u as p,p as h}from"./vendor-BTunnNwh.js";import{cf as m,cG as _,aq as k,ay as j}from"./index-DzCib9fG.js";import{R as y}from"./ResetIcon-vqS01ptb.js";const f=()=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",children:[t.jsx("path",{d:"M27 25V13C27 11.8954 26.1046 11 25 11H13C11.8954 11 11 11.8954 11 13V25C11 26.1046 11.8954 27 13 27H25C26.1046 27 27 26.1046 27 25Z",stroke:"var(--accent)"}),t.jsx("path",{d:"M22 6H8C6.89543 6 6 6.89543 6 8V22",stroke:"var(--accent)",strokeLinecap:"round"}),t.jsx("path",{d:"M17 1H3C1.89543 1 1 1.89543 1 3V17",stroke:"var(--accent)",strokeLinecap:"round"})]}),v=()=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",children:[t.jsx("path",{d:"M26 6.33887C27.8789 8.7218 29 11.73 29 15.0001C29 22.7321 22.732 29.0001 15 29.0001C7.26801 29.0001 1 22.7321 1 15.0001C1 11.73 2.12114 8.7218 4 6.33887",stroke:"var(--brig-accent)",strokeLinecap:"round"}),t.jsx("path",{d:"M15 1V18",stroke:"var(--brig-accent)",strokeLinecap:"round"})]}),g="_main_jhuyy_1",b="_point_jhuyy_58",C="_selected_jhuyy_62",w="_pointBackground_jhuyy_94",c={main:g,default:"_default_jhuyy_43",point:b,selected:C,pointBackground:w},N=({state:e,onClick:s,fps:o,children:d})=>{const[n,i]=u.useState(e),r=x(m);u.useEffect(()=>{i(o===r)},[r]);const l=async()=>{s(o)};return t.jsxs("div",{onClick:l,className:`${c.main} ${n?c.selected:c.default}`,children:[d(),t.jsx("div",{className:c.point}),t.jsx("div",{className:c.pointBackground})]})},S="_main_1yp50_1",B={main:S},I=()=>{const{t:e}=p("telemetry"),s=h(),[o]=u.useState([{content:()=>e("high"),fps:50},{content:()=>e("mid"),fps:200},{content:()=>e("low"),fps:900},{content:()=>t.jsx(v,{}),fps:0}]),d=n=>{s(_(n))};return t.jsx("div",{className:B.main,children:o.map(({content:n,state:i,fps:r},l)=>t.jsx(N,{state:i,fps:r,onClick:d,children:n},l))})},q="_frequencyUpdates_1k0p0_1",T="_about_1k0p0_8",U="_aboutText_1k0p0_15",F="_aboutIcon_1k0p0_26",H="_stick_1k0p0_31",a={frequencyUpdates:q,about:T,aboutText:U,aboutIcon:F,stick:H},L=({handleDataUpdate:e})=>{const{t:s}=p("telemetry");return t.jsxs("div",{className:a.frequencyUpdates,children:[t.jsx(k,{text:s("frequencyUpdate")}),t.jsx("div",{className:a.stick,children:t.jsx(I,{})}),t.jsx("div",{className:a.aboutIcon,children:t.jsx(f,{})}),t.jsx("div",{className:a.about,children:t.jsx("p",{className:a.aboutText,children:s("about update")})}),t.jsx(j,{icon:y,text:s("update"),onClick:e,type:"button",isBlocked:!1})]})};export{L as F};
//# sourceMappingURL=index-CuzzOBga.js.map
